package api.http.object.api;

import com.trello.rxlifecycle2.components.support.RxAppCompatActivity;

import api.base.bean.BasicResponse;
import api.base.observer.DefaultObserver;
import api.http.object.bean.ObjectBean;

/**
 * Created by Administrator on 2018-01-12.
 */

public interface IObject<T> {
    void addObject(RxAppCompatActivity context, T t, DefaultObserver<BasicResponse<ObjectBean>> observer);
    void removeObject(RxAppCompatActivity context, T t, DefaultObserver<BasicResponse<ObjectBean>> observer);
    void updataObject(RxAppCompatActivity context, T t, DefaultObserver<BasicResponse<ObjectBean>> observer);
    void delObject(RxAppCompatActivity context, T t, DefaultObserver<BasicResponse<ObjectBean>> observer);
}
